﻿package net.wangit.jdbc.database;

public class DB2400 extends DB2 {

	public DB2400() {
	}

	public boolean supportsIdentityColumns() {
		return false;
	}

	public boolean supportsSequences() {
		return false;
	}

	public boolean supportsLimit() {
		return true;
	}

	public boolean supportsLimitOffset() {
		return false;
	}

	public String getLimitString(String sql, boolean hasOffset, int limit) {
		return (new StringBuffer(sql.length() + 40)).append(sql).append(
				" fetch first ").append(limit).append(" rows only ").toString();
	}

	public boolean useMaxForLimit() {
		return true;
	}

	public boolean supportsVariableLimit() {
		return false;
	}
}
